<template>
  <div class="app-content">
     <el-col :span="12"> 
        <img class="img-style" :src="img_404" alt="">
     </el-col>
      <el-col :span="12"> 
          <div style="margin-left:100px;margin-top:60px;">
            <h1>oh! no!</h1>
            <h2>很抱歉, 页面走丢了!</h2>
            <p>请检查输入的网址是否正确,请点击按钮返回主页!</p>
            <el-button type="danger" round @click="goMainPage">返回首页</el-button>
          </div>
     </el-col>
  </div>
</template>

<script>
 
 import img_404 from '@/assets/images/gif_404.gif'
export default {
  name: 'error', 
  data(){
    return {
      img_404
    }
  },
  methods:{
    goMainPage(){
      this.$router.replace({path:'/'})
    }
  }
}
</script>

<style scoped lang="less">
.app-content{
  width: 80%; 
  margin: 120px auto;
  .img-style{
    width: auto;
    height: auto;
    max-height:100%;
    max-width: 100%;
  }
}
</style>